import 'package:flutter/material.dart';

class ButtonDemo extends StatelessWidget {

  void log(String msg) {
    print(msg);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Button")),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          RaisedButton(
              child: Text("RAISED BTN",
                style: TextStyle(
                    color: Colors.green,
                    fontSize: 20
                ),),
              onPressed: () {
                log("press raised btn");
              }
          ),
          FlatButton(
              onPressed: () {
                log("press flat btn");
              },
              child: Text("FLAT BTN")
          ),
          FlatButton(
              color: Colors.blue,
              highlightColor: Colors.blue[700],
              colorBrightness: Brightness.dark,
              splashColor: Colors.grey,
              child: Text("Submit"),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(10.0)),
              onPressed: () => {}
          )
        ],
      ),
    );
  }
}